package com.siwei.mes.mapper;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.AggregateWater;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 含水率(AggregateWater)表数据库访问层
 *
 * @author linzi
 * @since 2023-12-01 22:37:52
 */
public interface AggregateWaterMapper extends BaseMapper<AggregateWater> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<AggregateWater> getList(AggregateWater entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    AggregateWater loadById(@Param("id") Long id);

    /**
     * 获取最后一条含水率数据
     *
     * @param entity
     * @return
     */
    AggregateWater getLastInfo(AggregateWater entity);
}
